<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>STRATEGIC CONSTRUCTION:  Fichier source de /Users/pierre-loupbarazzutti/Desktop/svn/silverstarlif7/projet/src/Terrain.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">STRATEGIC CONSTRUCTION
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.8.0 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li><a href="dirs.html"><span>Répertoires</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_terrain_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Terrain.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_terrain_8h.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef _TERRAIN</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define _TERRAIN</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &quot;<a class="code" href="_cases_8h.html">Cases.h</a>&quot;</span>
<a name="l00005"></a>00005 
<a name="l00006"></a><a class="code" href="structs_terrain.html">00006</a> <span class="keyword">struct </span><a class="code" href="structs_terrain.html">sTerrain</a>
<a name="l00007"></a>00007 {
<a name="l00008"></a><a class="code" href="structs_terrain.html#a795727ac892069f4fd9f49b31fde3e37">00008</a>         <span class="keywordtype">int</span> <a class="code" href="structs_terrain.html#a795727ac892069f4fd9f49b31fde3e37">dimx</a>;
<a name="l00009"></a><a class="code" href="structs_terrain.html#ade13d4b448e98bc9cd975a163ebf74ad">00009</a>         <span class="keywordtype">int</span> <a class="code" href="structs_terrain.html#ade13d4b448e98bc9cd975a163ebf74ad">dimy</a>;
<a name="l00010"></a><a class="code" href="structs_terrain.html#aa4ce6da6cbf696efbef61f05d693fd0c">00010</a>         <span class="keywordtype">int</span> <a class="code" href="structs_terrain.html#aa4ce6da6cbf696efbef61f05d693fd0c">scrollx</a>;
<a name="l00011"></a><a class="code" href="structs_terrain.html#a728bdf04141bcfdf8c5ef0b6488889e5">00011</a>         <span class="keywordtype">int</span> <a class="code" href="structs_terrain.html#a728bdf04141bcfdf8c5ef0b6488889e5">scrolly</a>;
<a name="l00012"></a><a class="code" href="structs_terrain.html#a5051ce11a776382d849b565ffb2f3d6b">00012</a>         <a class="code" href="structs_cases.html">Cases</a> * <a class="code" href="structs_terrain.html#a5051ce11a776382d849b565ffb2f3d6b">cases</a>;
<a name="l00013"></a>00013 };
<a name="l00014"></a><a class="code" href="_terrain_8h.html#a8e5086042a2f903e0e0b8c4185482cc9">00014</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structs_terrain.html">sTerrain</a> <a class="code" href="structs_terrain.html">Terrain</a>;
<a name="l00015"></a>00015 
<a name="l00016"></a>00016 
<a name="l00017"></a>00017 <span class="comment">/* Procédure : InitialisationTerrain </span>
<a name="l00018"></a>00018 <span class="comment">Précondition : t est bien créé</span>
<a name="l00019"></a>00019 <span class="comment">Postcondition : initialise d&#39;abord dimx et dimy de la structure Terrain et alloue un tableau de Cases dans le tas </span>
<a name="l00020"></a>00020 <span class="comment">Paramètre en mode donnée-résultat : t */</span>
<a name="l00021"></a>00021 <span class="keywordtype">void</span> <a class="code" href="_terrain_8c.html#a7368383a5bf78f14daa56ad29f17ec1b">InitialisationTerrain</a> (<a class="code" href="structs_terrain.html">Terrain</a> * t, <span class="keywordtype">int</span> <a class="code" href="structs_terrain.html#a795727ac892069f4fd9f49b31fde3e37">dimx</a>, <span class="keywordtype">int</span> <a class="code" href="structs_terrain.html#ade13d4b448e98bc9cd975a163ebf74ad">dimy</a>);
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="comment">/*Fonction : ObtientCasesTerrain -&gt; Cases</span>
<a name="l00024"></a>00024 <span class="comment">Précondition : t est bien initialisé, 0&lt;=x&lt;=(*t).dimx  et 0&lt;=y&lt;=(*t).dimy  </span>
<a name="l00025"></a>00025 <span class="comment">Postcondition : permet d&#39;obtenir une case du tableau de Cases de la structure Terrain </span>
<a name="l00026"></a>00026 <span class="comment">                Cette case peut etre modifier </span>
<a name="l00027"></a>00027 <span class="comment">Paramètre en mode donnée : x et y</span>
<a name="l00028"></a>00028 <span class="comment">Paramètre en mode donnée-résultat : t */</span>
<a name="l00029"></a>00029 <a class="code" href="structs_cases.html">Cases</a> * <a class="code" href="_terrain_8c.html#a4216537a99d60dc6608fb6a3fb24daa8">ObtientCasesTerrain</a> (<a class="code" href="structs_terrain.html">Terrain</a> * t, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="comment">/* Fonction : ObtientConstCasesTerrain -&gt; Cases</span>
<a name="l00032"></a>00032 <span class="comment">Précondition :  t est bien initialisé, 0&lt;=x&lt;=(*t).dimx  et 0&lt;=y&lt;=(*t).dimy </span>
<a name="l00033"></a>00033 <span class="comment">Postcondition : permet d&#39;obtenir une case du tableau de Cases de la structure Terrain </span>
<a name="l00034"></a>00034 <span class="comment">                Cette case ne peut pas etre modifier </span>
<a name="l00035"></a>00035 <span class="comment">Paramètre en mode donnée : x et y</span>
<a name="l00036"></a>00036 <span class="comment">Paramètre en mode donnée-résultat : t */</span>
<a name="l00037"></a>00037 <span class="keyword">const</span> <a class="code" href="structs_cases.html">Cases</a> * <a class="code" href="_terrain_8c.html#a7cd62dbc95a70c8bc466501b19c72c0e">ObtientConstCasesTerrain</a> (<span class="keyword">const</span> <a class="code" href="structs_terrain.html">Terrain</a> * t, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 <span class="comment">/* Procédure :  DestructionTerrain </span>
<a name="l00040"></a>00040 <span class="comment">Précondition : t est bien initialisé</span>
<a name="l00041"></a>00041 <span class="comment">Postcondition : libère le tableau de Cases de la structure Terrain apres avoir détruit une à une les cases se trouvant dans le tableau </span>
<a name="l00042"></a>00042 <span class="comment">Paramètre en mode donnée-résultat : t */</span>
<a name="l00043"></a>00043 <span class="keywordtype">void</span> <a class="code" href="_terrain_8c.html#a552e8705aae2fb058d130b63a6c99d45">DestructionTerrain</a> (<a class="code" href="structs_terrain.html">Terrain</a> * t);
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 <span class="comment">/* Procédure :  TerrainTestRegression() </span>
<a name="l00046"></a>00046 <span class="comment">Précondition : aucune</span>
<a name="l00047"></a>00047 <span class="comment">Postcondition : teste toutes les fonctions, procédures du module Terrain */</span>
<a name="l00048"></a>00048 <span class="keywordtype">void</span> <a class="code" href="_terrain_8c.html#a9392e968c8bdaa4c12bb3500896ea987">TerrainTestRegression</a>();
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_terrain_8h.html">Terrain.h</a>      </li>

    <li class="footer">Généré le Jeudi Juin 7 2012 11:43:12 pour STRATEGIC CONSTRUCTION par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
